//
//  CLGNetwork.h
//  CLGNetworkApp
//
//  Created by Liu Guocheng on 2018/4/2.
//  Copyright © 2018年 Sumavision. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>

typedef NSURLSessionDataTask CLGTask;

typedef void(^CLGNetworkCompletion)(id response, NSError *error);

@interface CLGNetwork : NSObject

+ (CLGTask *)GET:(NSURL *)url
      parameters:(NSDictionary *)parameters
         headers:(NSDictionary *)headers
         timeout:(NSTimeInterval)timeout
      completion:(CLGNetworkCompletion)completion;

@end
